package com.sc3.game.dataaccess;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DAUtil {
	private static final SimpleDateFormat LONG_FORMATTER = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS");
	private static final SimpleDateFormat SHORT_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
	
	public static String date2LongString(Date date){
		return LONG_FORMATTER.format(date);
	}
	
	public static String date2ShortString(Date date){
		return SHORT_FORMATTER.format(date);
	}
}
